package org.jeecg.modules.sggg.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 转诊记录表
 * @Author: jeecg-boot
 * @Date:   2022-11-10
 * @Version: V1.0
 */
@Data
@TableName("sg_treatment_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sg_treatment_log对象", description="转诊记录表")
public class SgTreatmentLog implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**居民*/
	@Excel(name = "居民", width = 15)
    @ApiModelProperty(value = "居民")
    private String memberId;
	/**医院*/
	@Excel(name = "医院", width = 15)
    @ApiModelProperty(value = "医院")
    private String hospital;
	/**转诊医生*/
	@Excel(name = "转诊医生", width = 15)
    @ApiModelProperty(value = "转诊医生")
    private String askId;
	/**转诊时间*/
	@Excel(name = "转诊时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "转诊时间")
    private Date referralTime;
	/**转诊类型*/
	@Excel(name = "转诊类型", width = 15)
    @Dict(dicCode = "referral_type")
    @ApiModelProperty(value = "转诊类型")
    private Integer referralType;
	/**目标医院*/
	@Excel(name = "目标医院", width = 15)
    @ApiModelProperty(value = "目标医院")
    private String hospitalTarget;
	/**协诊表id*/
	@Excel(name = "协诊表id", width = 15)
    @ApiModelProperty(value = "协诊表id")
    private String assistId;

    @TableField(exist = false)
    private String name;

    @TableField(exist = false)
    private String idCard;

    @TableField(exist = false)
    private String phone;

    @TableField(exist = false)
    private String address;

    @TableField(exist = false)
    private String sex;

    @TableField(exist = false)
    private String threeTag;

    @TableField(exist = false)
    private String realname;

    @TableField(exist = false)
    private String departName;

    @TableField(exist = false)
    private List<String> responsibleAgencies;
}
